package com.doudou.base.resources.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.doudou.commons.entity.BaseEntity;
import lombok.Data;

import java.io.Serializable;

/**
 * 用户账号的详情
 *
 * @author 傻男人
 * @since 2020-05-14
 */

@Data
@TableName(value = "user_account_info",resultMap = "BaseResultMap")
public class UserAccountInfo extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id主键
     */
	private Long id;
    /**
     * 登录用户名
     */
	@TableField("login_name")
	private String loginName;
    /**
     * 手机号码
     */
	private String phone;
    /**
     * 电子邮箱
     */
	private String email;
    /**
     * 密码
     */
	private String password;
    /**
     * 微信openId
     */
	@TableField("wecat_open_id")
	private String wecatOpenId;
    /**
     * qq的openId
     */
	@TableField("qq_open_id")
	private String qqOpenId;
    /**
     * 是否有效（0有效 1无效）
     */
	private Integer available;


	public class Meta {
        public static final String id = "id";
        public static final String loginName = "login_name";
        public static final String phone = "phone";
        public static final String email = "email";
        public static final String password = "password";
        public static final String wecatOpenId = "wecat_open_id";
        public static final String qqOpenId = "qq_open_id";
        public static final String available = "available";
        public static final String createDate = "CREATE_DATE";
        public static final String updateDate = "UPDATE_DATE";
        public static final String delFlag = "del_flag";
    }
}